import request from '@/utils/request'

// 查询账号信息列表
export function listApplicationInfo(query) {
  return request({
    url: '/applicationInfo/list',
    method: 'get',
    params: query
  })
}

export function listAllApplicationInfo(query) {
  return request({
    url: '/applicationInfo/list/all',
    method: 'get',
    params: query
  })
}

// 查询账号信息详细
export function getApplicationInfo(id) {
  return request({
    url: '/applicationInfo/' + id,
    method: 'get'
  })
}

// 新增账号信息
export function addApplicationInfo(data) {
  return request({
    url: '/applicationInfo',
    method: 'post',
    data: data
  })
}

// 修改账号信息
export function updateApplicationInfo(data) {
  return request({
    url: '/applicationInfo',
    method: 'put',
    data: data
  })
}

// 删除账号信息
export function abandonedApplicationInfo(data) {
  return request({
    url: '/applicationInfo/abandoned' ,
    method: 'post',
    data:data
  })
}
// 上下架
export function operatedataApplication(data) {
  return request({
    url: '/applicationInfo/operate',
    method: 'post',
    data:data
  })
}